//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.web.controller.app;

import com.ruoyi.live.app.service.UploadService;
import com.ruoyi.live.tool.utils.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import jakarta.servlet.http.HttpServletRequest;

@Controller
@Scope("prototype")
public class UploadController {
    @Autowired
    UploadService service;

    public UploadController() {
    }

    @ResponseBody
    @RequestMapping({"/app/api/task/uploadChannelFile"})
    public Message uploadChannelFile(Long channelId, String channelName, MultipartFile file, HttpServletRequest request) {
        return this.service.uploadRecordFile(channelId, channelName, file, request);
    }
}
